extends head

block content
    body.dashboard.form-signin-wrapper
        div#forgotpass.container
            form.form-signin
                div.panel.periodic-login
                    span.atomic-number 01
                    div.panel-body.text-center
                        h1.atomic-symbol 果
                        p.atomic-mass 01.161001
                        p.element-name 果然之味
                        i.icons.icon-arrow-down
                        div.form-group.form-animate-text(style="margin-top:40px !important;")
                            input.form-text(v-model='useremail',type='email',required)
                            span.bar
                            label 邮箱
                            p 请输入您的邮箱重置密码
                        input.btn.col-md-12(type="submit",value="Reset")
                    div.text-center(style="padding:5px;")
                        a(href="/manager/user/login") 登录
                        a(href="/manager/user/register") | 注册
block append footer
    script(type='text/javascript').
        $(function(){
           var forgotpass=new vue({
                el:'#forgotpass',
                data:{
                    useremail:''
                    },
                method:{
                    init:function () {

                    },
                    forgotpass:function () {
                        zxlib.fpost('/manager/user/valid',{
                            useremail:forgotpass.useremail
                        },
                        function (data) {
                            location.href=data
                        },
                        function (data) {
                            alert(data);
                        })
                    }
                }
           })
        })
